package com.ecahack.busstop.utils;

public abstract class ServiceProvider {
	
	public static ServiceProvider getInstance() {
		return new DefaultProvider();
	}
	
	public abstract String getProtocol();
	
	public abstract String getHost();
	
	public abstract int getPort();
	
	public abstract String getResourceUrl();
	
	public abstract String getPassword();
	
	static class DefaultProvider extends ServiceProvider {

		@Override
		public String getProtocol() {
			return "http";
		}

		@Override
		public String getHost() {
			return "freelancer.ge";
		}

		@Override
		public int getPort() {
			return 80;
		}

		@Override
		public String getResourceUrl() {
			return "service.svc";
		}
		
		@Override
		public String getPassword() {
			return "GDGPROJ";
		}
		
	}
}
